<template>
<div class="cart_item">
    
    <!-- 左边 -->
    <div class="left">
        <input type="checkbox" v-model="item.checked" style="width: 20px;height: 20px;">
        <img src="" alt="">
        <div class="text">
            <div class="title">{{item.title}}</div>
            <van-stepper :min="1" v-model=" item.count " button-size="30px" />

        </div>
    </div>
    <!-- 右边 -->
    <div class="price">
        {{ item.price * item.count}}
    </div>
</div>
</template>

<script lang="ts">
    export default{
        props:['item']
    }
</script>

<style lang="less">
    .cart_item{
        display: flex;
        .left{
            display: flex;
            font-size: 8vw;
        }
        .input{
            width: 12px;
            height: 12px;
        }
        img{
            width: 40px;
            height: 40px;
        }
    .title{
        font-size: 8vw;
    }
    }
    
</style>